<?php
namespace  app\common\model;

use think\Model;

class AdminUser extends Model
{
    public function findAll()
    {
        return $this->where('status','<', 99)->select();
    }

    public function findByUsername($username)
    {

        $where = [
            'username' => $username
        ];
        return $this->where($where)->find();
    }
}